package com.bjpowernode;

import com.bjpowernode.ba03.Student;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MyTest03 {

    @Test
    public void test01(){
        String configure="applicationContext.xml";
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext(configure);
        Student student=(Student)applicationContext.getBean("student3");
        System.out.println(student);

    }
}
